package com.xyz.eduservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 试题
 * </p>
 *
 * @author zsr
 * @since 2021-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("szy_edu_question")
@Schema(description="试题")
public class EduQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "试题ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "课程ID")
    private String courseId;

    @Schema(description = "章节ID")
    private String chapterId;

    @Schema(description = "题型：1-单选题 2-多选题 3-判断题 4-填空题 5-简答题")
    private Integer questionType;

    @Schema(description = "题目标题")
    private String title;

    @Schema(description = "题目内容")
    private String content;

    @Schema(description = "选项A")
    private String optionA;

    @Schema(description = "选项B")
    private String optionB;

    @Schema(description = "选项C")
    private String optionC;

    @Schema(description = "选项D")
    private String optionD;

    @Schema(description = "选项E")
    private String optionE;

    @Schema(description = "选项F")
    private String optionF;

    @Schema(description = "正确答案")
    private String answer;

    @Schema(description = "答案解析")
    private String analysis;

    @Schema(description = "难度等级：1-简单 2-一般 3-困难")
    private Integer level;

    @Schema(description = "显示排序")
    private Integer sort;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}